<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
     >
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>

</head>
<body>
<div style="width:96%;margin-left:auto;margin-right:auto;">
    <form action="/user/loginP" method="post">
        <input type="text" id="name" name="name" />
        <input type="text" id="pwd" name="pwd" />
        12345
        <input type="button" value="登 录"/>
    </form>
</div>
1111
<script src="/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
    /*<![CDATA[*/
    //[{"id":123,"sort":2},{"id":124,"sort":3}]
    //[[123,2],[124,3]]
    //'[{"id":123,"sort":2},{"id":124,"sort":3}]'
    var userList = new Array();
    userList.push({id: 123,sort: 3});
    userList.push({id: 124,sort: 4});

    $('input[type=button]').click(function () {
        $.ajax({
            url:"/req/list/13526789963?pageNo=1&pageSize=10",
            //data:'{arr[0]:"124",arr[1]:"123"}',
            //data:'{"arr":[12,23]}',
            //data:{"templateId":150459691298726,"name":"功能型首页 快照 快照11"},
            type: "get",
            dataType:"json",
            contentType : 'application/json;charset=utf-8',
            success: function (r) {
                alert(JSON.stringify(r));
                alert(r.message);
                if(r.code < 0){ alert(r.msg);}
                else alert('ok');
            }
        });
//        $.post("/module/del",129 ,function(r){
//            if(r.code < 0){ alert(r.msg);}
//            else alert('ok');
//        });
//        $.ajax({
//            url:"/module/del/129",
//            //data:'{arr[0]:"124",arr[1]:"123"}',
//            //data:'{"arr":[12,23]}',
//            //data:'129',
//            type: "post",
//            dataType:"json",
//            contentType : 'application/json;charset=utf-8',
//            success: function (r) {
//                if(r.code < 0){ alert(r.msg);}
//                else alert('ok');
//            }
//        });
    });
    /*]]>*/
</script>
</body>
</html>